# nss bin directory
NSS_BIN_DIR=/mnt/g/8---OneTLS/open_tls/nss/dist/Debug/bin

# nss tstclnt usage
# 连接127.0.0.1:4433，不用证书数据库，忽视错误的服务器证书，tls1.3版本，密码套件，密钥交换曲线组，带外psk，dtls as client，verbose 
#$NSS_BIN_DIR/tstclnt -h xieli.localdomain -p 4433 -D -V tls1.3:tls1.3 -c :1301:1303 -I x25519,P256 -z 0xaabbccdd:test -P client -v
# 连接127.0.0.1:4433，服务端证书名，证书路径，数据库密钥，tls1.3版本，密码套件，密钥交换曲线组，带外psk，dtls as client，verbose 
$NSS_BIN_DIR/tstclnt -h xieli.localdomain -p 4433 -a TestUser -d client -w nss -V tls1.3:tls1.3 -c :1301:1303 -I x25519,P256 -z 0xaabbccdd:test -P client -v

# openss s_client dtls1.2 client usage
# openssl s_client -connect xieli.localdomain:4433 -dtls1_2 -psk_identity test -psk aabbccdd -debug

#nss tstclnt dtls1.2 client usage(nss dtls1.2不允许psk模式握手)
# $NSS_BIN_DIR/tstclnt -h xieli.localdomain -p 4433 -a TestUser -d client -w nss -V tls1.2:tls1.2 -z 0xaabbccdd:test -P client -v -a TestUser